package com.education.expenses.eao;

import com.education.expenses.entity.Receipt;
import com.education.expenses.entity.Report;
import com.education.expenses.entity.Role;
import com.education.expenses.entity.User;

import java.util.Date;
import java.util.List;

/**
 * User: alpoloz
 * Date: 7/11/12
 * Time: 6:37 PM
 */
public interface UserEAO extends EAO<User> {

    User getUserByEmail(String email);

    List<Receipt> getWeekReceiptListUser(Long id, Date reportDate, int pageNumber, int pageCount);

    Report getWeekReport(Long id, Date reportDate);

    List<User> getUsersByRole(Role role);

    boolean isUsersExist();
}
